﻿namespace Example
{
    using NodaTime;
    using NodaTime.Globalization;

    using Xunit;

    public sealed class NodaTimeLocalTimeFacts
    {
        [Fact]
        public void op_ToString_string()
        {
            var time = new LocalTime(16, 20, 0);

            const string expected = "16:20:00";
            var actual = time.ToString("HH:mm:ss", NodaFormatInfo.InvariantInfo);

            Assert.Equal(expected, actual);
        }
    }
}